package ch13;

/**
 * Created by zhangyunqi on 2017/9/23.
 */
public class SortPlayerList {
    public static void main(String[] args) {
        Contact[] players = new Contact[7];
        players[0]= new Contact ( "Rodger","Federer","610-555-7384" );
        players[1]= new Contact ( "Andy","Roddick","215-555-3827" );
        players[2]= new Contact ( "Maria","Sharapova","733-555-7384" );
        players[3]= new Contact ( "Venus","Williams","663-555-7384" );
        players[4]= new Contact ( "Lleyton","Hewitt","610-555-7384" );
        players[5]= new Contact ( "Eleni","Daniilidou","610-555-7384" );
        players[6]= new Contact ( "Serena","Williams","610-555-7384" );

        Sorting.selectionSort(players);

        for (Comparable player: players)
            System.out.println (player);
    }
}
